@font-face {
    font-family: Butler_Black;
    font-weight: 700;
    src: url(./asset/font/Agatho_Bold.otf) format("truetype");
    text-rendering: optimizeLegibility;
}
@font-face {
    font-family: Butler_Ultra_Light;
    font-weight: 700;
    src: url(./asset/font/Agatho_Regular.otf) format("truetype");
    text-rendering: optimizeLegibility;
}
* {
    padding: 0;
    margin: 0;
}

body {
    background: url(./asset/bg.png);
    background-size: contain;
    background-attachment: fixed;
}

.mask {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: rgba(230, 221, 209, 0.1);
    backdrop-filter: blur(4px);
}
.content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    .card {
        width: 400px;
        height: 500px;
        background-color: #fff;
        border: 2px solid #000;
        border-radius: 10px;
        position: relative;
        .card-content {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            .info {
                width: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                .head-sculpture {
                    margin: 20px 0;
                    text-align: center;
                    img {
                        height: 100%;
                        border: 2px solid #000;
                        box-sizing: border-box;
                        border-radius: 50%;
                    }
                }
                .rief-introduction {
                    text-align: center;
                    width: 100%;
                    .name {
                        font-family: Butler_Black;
                        font-size: 45px;
                        display: block;
                        margin: 10px 0;
                    }
                }
            }
        }
        .front {
            opacity: 1;
            position: absolute;
            z-index: 1;
            .info {
                .head-sculpture {
                    width: 150px;
                    height: 150px;
                }
                .rief-introduction {
                    .introduction {
                        font-family: Butler_Ultra_Light;
                        font-size: 25px;
                        margin: 20px 0;
                    }
                    span {
                        display: block;
                        margin: 10px 0;
                    }
                }
            }
        }
        .opposite {
            opacity: 0;
            position: absolute;
            z-index: -1;
            .info {
                .head-sculpture {
                    width: 100px;
                    height: 100px;
                    img {
                        height: 100%;
                        border: 2px solid #000;
                        border-radius: 50%;
                        box-sizing: border-box;
                    }
                }
                .rief-introduction {
                    .other-introduction-item {
                        margin: 5px 0;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        padding: 0 10%;
                        text-align: left;
                        margin-bottom: 10px;
                        .introduction-name {
                            font-family: Butler_Black;
                            font-size: 30px;
                            vertical-align: middle;
                        }
                        .introduction-detail {
                            font-family: Butler_Ultra_Light;
                            font-size: 20px;
                            vertical-align: middle;
                            .icon {
                                width: 30px;
                                height: 30px;
                                vertical-align: middle;
                                margin: 0 5px;
                                cursor: pointer;
                            }
                        }
                    }
                }
            }
        }
        .btn {
            width: 50%;
            height: 50px;
            border: 2px solid #000;
            border-radius: 50px;
            margin: 40px 0;
            cursor: pointer;
            background-color: rgb(183, 211, 232);
            font-size: 25px;
            font-family: Butler_Black;
            transition: .5s;
            &:hover {
                background-color: rgb(200, 229, 252);
            }
        }
    }
}

.flip-left {
    animation: flip-left .5s linear both;
}

.flip-right {
    animation: flip-right .5s linear both;
}

@keyframes flip-left {
    0% {
        transform: translateX(0) rotateY(0) scale(1);
        transform-origin: 0% 50%;
    }
    50% {
        transform: translateX(-50%) rotateY(90deg) scale(1.2);
        transform-origin: 50% 50%;
    }
    100% {
        transform: translateX(-100%) rotateY(180deg) scale(1);
        transform-origin: 100% 50%;
    }
}


@keyframes flip-right {
    0% {
        transform: translateX(0) rotateY(0) scale(1);
        transform-origin: 100% 50%;
    }
    50% {
        transform: translateX(50%) rotateY(-90deg) scale(1.2);
        transform-origin: 50% 50%;
    }
    100% {
        transform: translateX(100%) rotateY(-180deg) scale(1);
        transform-origin: 0% 50%;
    }
}